<#include "utils.ftl" />
<#include "../../macros/utils.ftl" />

<#if m_site.m_get_view == "addItem">
	<@getItemTemplate />
	<script type="text/javascript">
	    base.init();
	</script>
</#if>

<#if m_site.m_get_view == "getItems">
	<#assign itemList = getList(m_site.itemsList) />
	<#if itemList?size gt 0>
		<#list itemList as item>
			<@itemItem item />
		</#list>
		<script type="text/javascript">
		    base.init();
		    base.questions.init();
		</script>
	<#else>
		<div class="alert alert-warning">
		 	No items have been registered for this question yet.
		</div>
	</#if>
</#if>

